/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package presentation.view;

/**
 *
 * @author Joanna 8a
 */
public class PanelModificarProfesor extends javax.swing.JPanel {

    /**
     * Creates new form PanelModificarProfesor
     * @param opc 1: Modificar Profesor; 2: Eliminar Profesor :D
     */
    public PanelModificarProfesor(int opc) {
        initComponents();
        if (opc==1){
        jButtonGuardar.setText("Guardar");
        }
        else if (opc==2){
        jButtonGuardar.setText("Eliminar");
        }
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jLabel4 = new javax.swing.JLabel();
        jTextFieldEmailPr = new javax.swing.JTextField();
        jLabelReputacion = new javax.swing.JLabel();
        jLabel2ApellidosProfesor = new javax.swing.JLabel();
        jLabelNombresProfesor = new javax.swing.JLabel();
        jButtonInicio = new javax.swing.JButton();
        jButtonGuardar = new javax.swing.JButton();
        jComboBoxNombreProfesor = new javax.swing.JComboBox();
        jComboBoxApellidoProfesor = new javax.swing.JComboBox();
        jTextFieldReputacionPr = new javax.swing.JTextField();

        jLabel4.setFont(new java.awt.Font("Segoe UI Light", 0, 14)); // NOI18N
        jLabel4.setText("Correo electrónico");

        jTextFieldEmailPr.setEditable(false);
        jTextFieldEmailPr.setFont(new java.awt.Font("Segoe UI Light", 0, 14)); // NOI18N

        jLabelReputacion.setFont(new java.awt.Font("Segoe UI Light", 0, 14)); // NOI18N
        jLabelReputacion.setText("Reputación");

        jLabel2ApellidosProfesor.setFont(new java.awt.Font("Segoe UI Light", 0, 14)); // NOI18N
        jLabel2ApellidosProfesor.setText("Apellidos");

        jLabelNombresProfesor.setFont(new java.awt.Font("Segoe UI Light", 0, 14)); // NOI18N
        jLabelNombresProfesor.setText("Nombres");

        jButtonInicio.setFont(new java.awt.Font("Segoe UI Light", 0, 14)); // NOI18N
        jButtonInicio.setText("Volver");
        jButtonInicio.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonInicioActionPerformed(evt);
            }
        });

        jButtonGuardar.setFont(new java.awt.Font("Segoe UI Light", 0, 14)); // NOI18N
        jButtonGuardar.setText("Guardar");

        jComboBoxNombreProfesor.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Nombre Profesor" }));

        jComboBoxApellidoProfesor.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Apellido Profesor" }));

        jTextFieldReputacionPr.setEditable(false);
        jTextFieldReputacionPr.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jTextFieldReputacionPrActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
        this.setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addContainerGap()
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabelNombresProfesor)
                            .addComponent(jLabel2ApellidosProfesor)
                            .addComponent(jLabelReputacion)
                            .addComponent(jLabel4))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(jTextFieldEmailPr, javax.swing.GroupLayout.DEFAULT_SIZE, 258, Short.MAX_VALUE)
                            .addComponent(jComboBoxNombreProfesor, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(jComboBoxApellidoProfesor, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(jTextFieldReputacionPr)))
                    .addGroup(layout.createSequentialGroup()
                        .addGap(88, 88, 88)
                        .addComponent(jButtonGuardar)
                        .addGap(77, 77, 77)
                        .addComponent(jButtonInicio)
                        .addGap(0, 68, Short.MAX_VALUE)))
                .addContainerGap())
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabelNombresProfesor)
                    .addComponent(jComboBoxNombreProfesor, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel2ApellidosProfesor)
                    .addComponent(jComboBoxApellidoProfesor, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabelReputacion)
                    .addComponent(jTextFieldReputacionPr, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel4)
                    .addComponent(jTextFieldEmailPr, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jButtonInicio)
                    .addComponent(jButtonGuardar))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
    }// </editor-fold>//GEN-END:initComponents

    private void jButtonInicioActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonInicioActionPerformed
        // TODO add your handling code here:
       this.setVisible(false);
       FramePrincipal fp=new FramePrincipal();
       fp.setVisible(true);
       
    }//GEN-LAST:event_jButtonInicioActionPerformed

    private void jTextFieldReputacionPrActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jTextFieldReputacionPrActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_jTextFieldReputacionPrActionPerformed

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton jButtonGuardar;
    private javax.swing.JButton jButtonInicio;
    private javax.swing.JComboBox jComboBoxApellidoProfesor;
    private javax.swing.JComboBox jComboBoxNombreProfesor;
    private javax.swing.JLabel jLabel2ApellidosProfesor;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLabel jLabelNombresProfesor;
    private javax.swing.JLabel jLabelReputacion;
    private javax.swing.JTextField jTextFieldEmailPr;
    private javax.swing.JTextField jTextFieldReputacionPr;
    // End of variables declaration//GEN-END:variables
}
